import axios from '@/libs/api.request'

const prefix = '/web/trainerTestProject'

const TrainerTestProjectApi = {
  pageResult (role) {
    return axios.request({
      url: prefix + '/pageResult',
      data: role,
      method: 'post'
    })
  },
  save (role) {
    return axios.request({
      url: prefix + '/save',
      method: 'post',
      data: role
    })
  },
  update (role) {
    return axios.request({
      url: prefix + '/update',
      method: 'post',
      data: role
    })
  },
  detail (id) {
    return axios.request({
      url: prefix + '/' + id,
      method: 'delete'
    })
  },
  delete (id) {
    return axios.request({
      url: prefix + '/' + id,
      method: 'delete'
    })
  }
}

export default TrainerTestProjectApi
